import request from '../../utils/request.js'


// 文章归档时间    /articles/listArchives  post 
export const getPigeonholeList = () => request({
	url: "/articles/listArchives",
	method: "post",
})


// 根据对应时间获取文章列表
export const getArticlesList = (data) => request({
	method: "get",
	url: "/articles",
	params: data
})


// 获取留言
export const findMessageList = () => request({
	method: "get",
	url: "/message",
})

// /message/add   添加留言
export const addMessage = (data) => request({
	method: "post",
	url: "/message/add",
	params: data
})

// /myArticle/{uid}   我的文章
export const getMyArticle = (data, uid) => request({
	method: "post",
	url: `/articles/myArticle/${uid}`,
	params: data
})


// 获取背景图片
export const getBgImageList = () => request({
	method: "get",
	url: "/bg/list"
})